<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PDFMathTranslate - AI驱动的学术PDF翻译工具</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
        }
        .serif-font {
            font-family: 'Noto Serif SC', serif;
        }
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .feature-icon {
            transition: all 0.3s ease;
        }
        .feature-icon:hover {
            transform: scale(1.1);
        }
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: 0.2rem;
            color: #667eea;
        }
        .timeline-dot {
            position: relative;
        }
        .timeline-dot::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            background: #e5e7eb;
            top: 50%;
            left: 100%;
        }
        .timeline-dot:last-child::before {
            display: none;
        }
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        .float-animation {
            animation: float 3s ease-in-out infinite;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto">
            <div class="text-center">
                <h1 class="text-5xl md:text-6xl font-bold mb-6 serif-font">PDFMathTranslate</h1>
                <p class="text-xl md:text-2xl mb-8 opacity-90">AI驱动的学术PDF翻译工具，保留原格式，支持双语对照</p>
                <div class="flex flex-wrap justify-center gap-4 mb-12">
                    <a href="https://github.com/Byaidu/PDFMathTranslate" class="bg-white text-purple-700 px-8 py-3 rounded-full font-medium hover:bg-gray-100 transition">
                        <i class="fab fa-github mr-2"></i>GitHub 项目
                    </a>
                    <button class="bg-purple-800 bg-opacity-50 text-white px-8 py-3 rounded-full font-medium hover:bg-opacity-70 transition">
                        <i class="fas fa-play mr-2"></i>在线体验
                    </button>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6 text-center">
                    <div class="bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur">
                        <i class="fas fa-language text-3xl mb-3"></i>
                        <h3 class="text-lg font-semibold mb-2">多语言支持</h3>
                        <p class="opacity-80">支持全球主流语言互译</p>
                    </div>
                    <div class="bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur">
                        <i class="fas fa-file-pdf text-3xl mb-3"></i>
                        <h3 class="text-lg font-semibold mb-2">格式完美保留</h3>
                        <p class="opacity-80">公式、图表、排版不变形</p>
                    </div>
                    <div class="bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur">
                        <i class="fas fa-robot text-3xl mb-3"></i>
                        <h3 class="text-lg font-semibold mb-2">AI智能翻译</h3>
                        <p class="opacity-80">集成多种先进翻译引擎</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Problem Section -->
    <section class="py-16 px-6 bg-white">
        <div class="max-w-4xl mx-auto">
            <h2 class="text-3xl font-bold mb-8 text-center gradient-text">它能解决什么问题</h2>
            <div class="prose prose-lg max-w-none">
                <p class="text-gray-700 leading-relaxed mb-6">
                    <span class="drop-cap serif-font">在</span>使用传统PDF翻译工具如Google Translate插件或手动复制粘贴时，用户常常遇到格式丢失的痛点：科学论文中的公式、图表和排版在翻译后容易变形，导致可读性差；多语言切换不便，难以并排比较原文与译文；依赖单一服务可能受限于准确性或隐私，且处理长文档效率低下。
                </p>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mt-8">
                    <div class="bg-red-50 border-l-4 border-red-400 p-6 rounded-r-lg">
                        <h4 class="font-semibold text-red-800 mb-2"><i class="fas fa-times-circle mr-2"></i>传统工具的痛点</h4>
                        <ul class="text-gray-700 space-y-2">
                            <li>• 公式和图表格式丢失</li>
                            <li>• 无法保留原始排版</li>
                            <li>• 难以对照原文阅读</li>
                            <li>• 隐私和准确性受限</li>
                        </ul>
                    </div>
                    <div class="bg-green-50 border-l-4 border-green-400 p-6 rounded-r-lg">
                        <h4 class="font-semibold text-green-800 mb-2"><i class="fas fa-check-circle mr-2"></i>PDFMathTranslate的解决方案</h4>
                        <ul class="text-gray-700 space-y-2">
                            <li>• AI智能识别保留格式</li>
                            <li>• 生成双语对照版本</li>
                            <li>• 集成多种翻译后端</li>
                            <li>• 支持本地部署保护隐私</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Core Features -->
    <section class="py-16 px-6 bg-gray-50">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-3xl font-bold mb-12 text-center gradient-text">核心功能概述</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="feature-icon inline-block mb-4">
                        <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-globe text-2xl text-purple-600"></i>
                        </div>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">多翻译服务支持</h3>
                    <p class="text-gray-600">兼容Google、DeepL、Ollama、OpenAI等后端，灵活适应不同准确性和隐私需求，避免单一服务故障。</p>
                </div>
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="feature-icon inline-block mb-4">
                        <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-file-alt text-2xl text-blue-600"></i>
                        </div>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">格式保留翻译</h3>
                    <p class="text-gray-600">自动生成单语和双语输出，保持原PDF布局包括公式和图像，确保学术文档的专业性。</p>
                </div>
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="feature-icon inline-block mb-4">
                        <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-cut text-2xl text-green-600"></i>
                        </div>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">部分文档翻译</h3>
                    <p class="text-gray-600">允许指定页码范围或章节翻译，支持多线程加速，适用于长论文的部分处理。</p>
                </div>
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="feature-icon inline-block mb-4">
                        <div class="w-16 h-16 bg-yellow-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-cogs text-2xl text-yellow-600"></i>
                        </div>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">兼容模式与自定义</h3>
                    <p class="text-gray-600">处理非PDF/A文档，提供自定义提示和ONNX模型选项，提升翻译质量和兼容性。</p>
                </div>
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="feature-icon inline-block mb-4">
                        <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-layer-group text-2xl text-red-600"></i>
                        </div>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">批量处理</h3>
                    <p class="text-gray-600">支持多个文件同时翻译，便于研究者批量处理文献库，提高工作流效率。</p>
                </div>
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="feature-icon inline-block mb-4">
                        <div class="w-16 h-16 bg-indigo-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-brain text-2xl text-indigo-600"></i>
                        </div>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">AI智能识别</h3>
                    <p class="text-gray-600">集成DocLayout-YOLO模型解析布局，智能识别文档结构，确保翻译准确性。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Use Cases -->
    <section class="py-16 px-6 bg-white">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-3xl font-bold mb-12 text-center gradient-text">使用场景</h2>
            <div class="space-y-8">
                <div class="bg-gradient-to-r from-purple-50 to-blue-50 rounded-xl p-8">
                    <div class="flex items-start">
                        <div class="flex-shrink-0 mr-6">
                            <div class="w-12 h-12 bg-purple-600 text-white rounded-full flex items-center justify-center font-bold">1</div>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-3">学术论文阅读</h3>
                            <p class="text-gray-700 leading-relaxed">研究生阅读英文物理论文时，可上传PDF文件，选择DeepL后端生成双语版本，便于并排比较公式推导，解决手动翻译格式混乱的问题。</p>
                        </div>
                    </div>
                </div>
                <div class="bg-gradient-to-r from-blue-50 to-green-50 rounded-xl p-8">
                    <div class="flex items-start">
                        <div class="flex-shrink-0 mr-6">
                            <div class="w-12 h-12 bg-blue-600 text-white rounded-full flex items-center justify-center font-bold">2</div>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-3">国际会议准备</h3>
                            <p class="text-gray-700 leading-relaxed">学者准备国际会议材料时，使用Ollama本地模型